<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="PhotoController.*,java.util.*, java.io.*,java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="/KOMORIUTA/photo/PtOld/PtOld.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/photo/PtOld/jquery.js" type="text/javascript"></script> 
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/css/<%=session.getAttribute("photo") %>.css">
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/page/page.css">
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/css/community.css">
<script>
function doList(page){
	document.oldFrm.currentPage.value=page;
	document.oldFrm.submit();
}
</script>
</head>


<%
ArrayList<PhotoOldBean> datas=(ArrayList<PhotoOldBean>)session.getAttribute("list");
String photo=(String)session.getAttribute("photo");
String nick=(String)session.getAttribute("Mem_Nick");
%>
<body>
<form action="PhotoOldAction.do" method="post" name="oldFrm">
<input type="hidden" name="action" value="pt_old_list" />
<input type="hidden" name="nick" value="<%= nick%>" />
<input type="hidden" name="currentPage" />
</form>


<div id="f">
	<% 
	for(PhotoOldBean photoOldBean:datas){
	%> 
	<div id="f1" >
		<div id="f1_1" >
			<table cellpadding=1 width="300" cellspacing=1 align="center">
				<tr height="10">
					<td width="100"></td><td></td>
				</tr>
				<tr height="30"> 
					<td bgcolor="">お名前 :</td>
					<td>
					<div>
						<a href=javascript:mass("<%= photoOldBean.getID()%>") class="black"><%= photoOldBean.getMem_NameH() %>(<%= photoOldBean.getMem_NameK() %>)</a>
						<a href=javascript:WriteGo("<%=nick%>","<%=photoOldBean.getMem_Nick()%>") id="massage<%= photoOldBean.getID()%>" class="mass"><img alt=""  src="<%=request.getContextPath()%>/photo/img/message_Send.png" ></a>
					</div>
					</td>
				</tr>
				<tr height="30"> 
					<td bgcolor="">生年月日 :</td>
					<td>
					<div>
					<%= photoOldBean.getMem_Year() %>年　<%= photoOldBean.getMem_Month() %>月<%= photoOldBean.getMem_Day() %>日
					</div></td>
				</tr>
				<tr height="30">
					<td bgcolor="">お住まい :</td>
					<td><div>
					<%= photoOldBean.getOld_Add() %>
					</div></td>
				</tr>
				<tr height="30">
					<td bgcolor="">性別 :</td>
					<td>
					<div>
					<%if( photoOldBean.getOld_Gender()==0){
							
					%>
					男性
					<%
					}else{
					%>
					女性
					<%
					}
					%>
					</div></td>
				</tr>
				<tr height="30">
					<td bgcolor="">日付 :</td>
					<td>
					<div>
					<%= photoOldBean.getOld_Date() %>
					</div></td>
				</tr>
			</table>
		</div>
		<div id="f1_2">
			<div id="f1_2_1">
					<img src="/KOMORIUTA/Applications/Old/photo/<%= photoOldBean.getOld_Photo() %>"  width="220" height="150" />
			</div>
		</div> 
	</div>
	<div id="f2"></div>
	<%
	if(photo.equals("old_photo")){
	%>
	<div id="f3">
			<a href='#' onClick="javascript:Comment('<%=photoOldBean.getID() %>')">
			<div id="f3_1" onMouseOver="this.style.backgroundColor='#7a2dd0'" onMouseOut="this.style.backgroundColor='#c091f1'">
				<div id="f3_1_1"></div>
			</div>
			</a>
	</div> 
	<%
	}else{
	%>
	<div id="f3">
			<a href='#' onClick="javascript:Comment('<%=photoOldBean.getID() %>')">
			<div id="f3_1" onMouseOver="this.style.backgroundColor='#e1b84b'" onMouseOut="this.style.backgroundColor='#886c21'">
				<div id="f3_1_1"></div>
			</div>
			</a>
	</div> 
	<%
	}
	%>
	
	<div id="cm<%=photoOldBean.getID() %>"  class="aaa">
	</div>
	<div id="f4"></div>	 

	<%
	}
	%>
</div>
<div id="ff">
	<%= session.getAttribute("paging") %>
</div>

</body>
</html>